package com.dd.cloud.user.mapper.classroom;

import com.dd.cloud.user.entity.classroom.MediaContent;
import com.dd.cloud.user.res.classroom.MediaContentDetailRes;
import com.dd.cloud.common.mybatis.RootMapper;

import java.util.List;

/**
 * <p>
 * 媒体内容表 Mapper 接口
 * </p>
 *
 * @author czg
 * @since 2022-09-14
 */
public interface MediaContentMapper extends RootMapper<MediaContent> {

    /**
     * 获取小节下的视频列表详情
     * @param userType
     * @param sectionId
     * @return
     */
    List<MediaContentDetailRes> queryMediaContentList(Integer userId, Integer userType, Integer sectionId, Integer classifyId);

    /**
     * 小节内视频重排序
     * @param sectionId 小节id
     */
    void updateMediaContentReorder(Integer sectionId);

    /**
     * 通过大类修改视频状态
     * @param classifyId
     */
    void updateContentStatusByClassifyId(Integer classifyId, Integer status);
}
